package com.daotu.psy.admin.controller.inner;

import com.daotu.psy.admin.api.entity.SysUser;
import com.daotu.psy.admin.api.vo.UserVO;
import com.daotu.psy.admin.service.SysUserService;
import com.daotu.psy.common.security.annotation.Inner;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author jacky
 * @date 2024-04-11
 */
@RestController
@AllArgsConstructor
@RequestMapping("/inner/users")
public class InnerSysUserController {

	private final SysUserService userService;

	@Inner
	@GetMapping("/{id}")
	public SysUser user(@PathVariable Long id) {
		return userService.getById(id);
	}
}
